<!-- 顶部组件 -->
<template>
  <div class="top_container">
    <div class="left">
      <!-- 首页 -->
      <span class="home">首页</span>
    </div>
    <div class="center">智慧旅游可可视化大数据平台</div>
    <div class="right">
      <!-- 统计报告  -->
      <span class="report">统计报告</span>
      <span class="time">当前时间:{{ time }}</span>
    </div>
  </div>
</template>

<script setup>
import moment from "moment";
let time = ref(moment().format("YYYY年MM月DD日 hh:mm:ss"));
</script>

<style lang="scss" scoped>
.top_container {
  color: #45c6e6;
  width: 100%;
  display: flex;
  height: 40px;
  .left,
  .right {
    flex: 1.2;
    background-size: 100% 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
  .left {
    background: url(../images/dataScreen-header-left-bg.png) no-repeat;
    display: flex;
    justify-content: right;
    .home {
      width: 150px;
      height: 100%;
      background: url(../images/dataScreen-header-btn-bg-l.png) no-repeat;
      background-size: 100% 100%;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
    }
  }
  .center {
    flex: 2;
    background: url(../images/dataScreen-header-center-bg.png) no-repeat;
    background-size: 100% 100%;
    height: 75px;
    line-height: 75px;
    text-align: center;
    font-size: 30px;
  }
  .right {
    background: url(../images/dataScreen-header-right-bg.png) no-repeat;
    display: flex;

    .report {
      width: 150px;
      height: 100%;
      background: url(../images/dataScreen-header-btn-bg-r.png) no-repeat;
      background-size: 100% 100%;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
    }

    .time {
      flex: 1.2;
      font-size: 16px;
      font-weight: bold;
    }
  }
}
</style>
